import { defineComponent, reactive, onMounted } from "vue";
export default defineComponent({
  props: {
    option: {
      type: Object,
      default: {},
    },
    types: {
      type: String,
      default: "",
    },
  },
  setup(props) {
    onMounted(() => {
      var myChart = window.echarts.init(document.getElementById("echarDx"));
      myChart.setOption(props.option);
    });

    return () => (
      <>
        <div class="echarDx" id="echarDx"></div>
      </>
    );
  },
});
